<template>
  <el-drawer
    title="更多筛选"
    :visible.sync="drawer"
    :with-header="false"
    direction="rtl"
    size="40%"
    :before-close="onClose">
    <div class="drawer-head">
      <i class="el-icon-close"></i>
      <span class="title">更多筛选</span>
    </div>
    <div class="drawer-body">
      <el-form ref="form" :model="form" label-width="100px">
        <el-form-item label="已执行次数">
          <div class="double-input">
            <el-input v-model="form.name" size="small" style="width: 78px;"></el-input>
            <i class="line">—</i>
            <el-input v-model="form.name" size="small" style="width: 78px;"></el-input>
          </div>
        </el-form-item>
        <el-form-item label="打招呼企微号">
          <el-select v-model="value" placeholder="请选择" style="width: 340px;">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="微信状态">
          <el-select v-model="value" placeholder="请选择" style="width: 340px;">
            <el-option
              v-for="item in status"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="入库时间">
          <el-date-picker
            v-model="datePicker"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="打招呼时间">
          <el-date-picker
            v-model="datePicker"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="通过时间">
          <el-date-picker
            v-model="datePicker"
            type="daterange"
            range-separator="至"
            start-placeholder="开始日期"
            end-placeholder="结束日期">
          </el-date-picker>
        </el-form-item>
        <div class="clear-row-item">
          <span>清空已选</span>
        </div>
      </el-form>
    </div>
    <div class="drawer-footer-wrap">
      <el-button size="small" @click="onClose">取消</el-button>
      <el-button size="small" type="primary" @click="onClose">确定</el-button>
    </div>
  </el-drawer>
</template>
<script>
export default {
  data() {
    return {
      form: {},
      options: [{
          value: 1,
          label: '闵雨微'
        }, {
          value: 2,
          label: '肖成红'
        }, {
          value: 3,
          label: '肖洁'
        }],
        status: [{
          value: 1,
          label: '待通过'
        }, {
          value: 2,
          label: '已通过'
        }, {
          value: 3,
          label: '未找到微信号'
        }],
        value: '',
        datePicker: ''
    }
  },
  props: ['drawer'],
  methods: {
    onClose() {
      this.$emit('onClose');
    }
  },
}
</script>
<style lang="scss" scoped>
.drawer-head {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 24px;
  color: rgba(0, 0, 0, .65);
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  border-radius: 4px 4px 0 0;
  font-size: 16px;
  .title {
    margin: 0;
    color: rgba(0, 0, 0, .85);
    font-weight: 500;
    line-height: 22px;
    margin-left: 12px;
  }
}
.drawer-body {
  flex-grow: 1;
  padding: 24px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.5715;
  word-wrap: break-word;
  .double-input {
    display: flex;
    align-items: center;
    .line{
      margin: 0 8px;
      color: #999;
    }
  }
  .clear-row-item {
    color: #3070ff;
    font-size: 14px;
    line-height: 22px;
  }
}
.drawer-footer-wrap {
  left: 0;
  right: 0;
  padding: 10px 16px;
  border-top: 1px solid #e9e9e9;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
</style>